from django.db import models
from django.contrib.auth.models import User
from django.conf import settings
import datetime
from django.conf import settings
import connectpeople.Constants

class Member(models.Model):
    user = models.ForeignKey(User, unique=True)
    photo = models.ImageField(upload_to=settings.MEDIA_ROOT+'/photo/', blank=True)
    first_name = models.CharField(max_length=25)
    last_name = models.CharField(max_length=25)
    country = models.CharField(max_length=100, choices=settings.COUNTRIES)
    city = models.CharField(max_length=25)
    created_date = models.DateTimeField(auto_now_add = True)
    email_settings = models.CharField(max_length=70, default=connectpeople.Constants.default_email_setting)
